package com.ncst.mvcweb.service;

import com.ncst.mvcweb.entity.OrderItem;
import com.ncst.mvcweb.entity.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface ProductService {
    List<Product> findAll();
    Product queryById(Integer id);
    void delete(List<Integer> idList);
    Product save(Product user);
    void saveAll(List<Product> products);
    Page<Product> queryByPage(PageRequest page);
}

